package com.library.bookmanagement.mapper;

import com.github.pagehelper.Page;
import com.library.bookmanagement.entity.User;

import java.util.List;

/**
 * @author ：ZXM
 * @date ：Created in 2020/5/8 16:52
 * @description：t_user数据表映射接口
 */
public interface UserMapper {
    int deleteByPrimaryKey(Integer uId);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer uId);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    Page<User> selectCanUse();


    List<User> selectBySelective(String username, String password);

    User selectByEmail(String email);

    User selectByName(String substring);
}